home *** CD-ROM | disk | FTP | other *** search
- #ifndef _QDOS_H_
- #define _QDOS_H_
-
- #ifdef __NDPC__
- #include <os.h>
- #define __NO32FARPTR__
- #else /* __NDPC__ */
- #if defined(_MSC_VER) && (_M_IX86 >= 300)
- #include <pldos32.h> /* __MSC32__ gets defined in here */
- #define __NO32FARPTR__
- #else /* __MSC32__ */
- #ifndef __OS2__ /* RSI DAVIDL */
- #include <dos.h>
- #else
- #include <regs.h>
- #endif
- #endif /* __MSC32__ */
- #endif /* __NDPC__ */
-
- #if defined(__ZTC__) && defined(DOS386)
- #define INT86(a,b,c) int86_real(a,b,b)
- #define INT86x(a,b,c) int86x_real(a,b,b,c)
- #else /* __ZTC__ */
- #if defined(__WATCOMC__) || defined(__OS2__)
- #define INT86(a,b,c) int386(a,b,b)
- #define INT86x(a,b,c) int386x(a,b,b,c)
- #else /* __WATCOMC__ */
- #ifdef __NDPC__
- #define INT86(a,b,c) int386(a,b,b)
- #define INT86x(a,b,c) int386x(a,b,b,c)
- #else /* __NDPC__ */
- #ifdef __MSC32__
- #define INT86(a,b,c) _int86(a,b,b)
- #define INT86x(a,b,c) _int86x(a,b,b,c)
- #else /* __MSC32__ */
- #define INT86(a,b,c) int86(a,b,b)
- #define INT86x(a,b,c) int86x(a,b,b,c)
- #endif /* __MSC32 */
- #endif /* __NDPC__ */
- #endif /* __WATCOMC__ */
- #endif /* __ZTC__ */
-
- #if defined(__WATCOMC__) || defined(__NDPC__) || defined(__MSC32__) || defined(__OS2__)
- #define REG16 w
- #else
- #define REG16 x
- #endif
-
- #ifdef __MSC32__
- #define REGS _REGS
- #define SREGS _SREGS
- #else
- #endif /* __MSC32 */
-
- #endif /* _QDOS_H_ */